<?php
require_once('mysql_table.php');

class calendario extends mysql_table{

    function __construct(){
        parent::__construct();
        $this->TableName = "CALENDARIOS";
        $this->IDField = "ID";        
        
        $this->fields['ID']  = "";
        $this->fields['ID_CLIENTE']  = "";
        $this->fields['FECHA']  = "";
        $this->fields['MOTIVO']  = "";
        $this->fields['RECORDAR']  = "";
        $this->fields['ID_STATUS']  = "";
        
    }
    
    function buscar($id_cliente){
        
        $query = "SELECT * FROM CALENDARIOS WHERE ID_CLIENTE =".$id_cliente;
        $salida = $this->tovector_assoc_query($query);
        //print($query);
        return $salida;
            
    }
   
    
}
?>
